<?php

class Ialbum_Widget_FeaturePhotosController extends Engine_Content_Widget_Abstract
{
  public function indexAction()
  {
	$photoTable = Engine_Api::_()->getDbTable('Photos', 'Album');
	$select = $photoTable->select()->where('feature = 1')->limit(1);
	$row = $photoTable->fetchRow($select);
	if(!$row)
		$this->setNoRender();
  }
}